package com.lagou.sqlSesssion;

import com.lagou.pojo.Configuration;

/**
 * TODO
 *
 * @author harmony
 * @description sqllSession工厂实现类
 * @date 2020/12/9 20:22
 */
public class DefaultSqlSessionFactory implements SqlSessionFactory{

    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSqlSession() {
        return new DefaultSqlSession(configuration);
    }
}
